const http = require("http");
var querystring = require("querystring");
const util = require("util");
http
  .createServer(function (req, res) {
    let str = "";
    // 用来监听表单提交
    req.on("data", function (chunk) {
      str += chunk;
    });

    req.on("end", function () {
      var post = querystring.parse(str);
      res.end(JSON.stringify(post));
    });
  })
  .listen(9255);
